<script>
//只适应于数组元素是字符串的数组
let arr2 = [1,["string",[4,[7]]]]

//1、toString + split
let c = arr2.toString().split(",")

//2、join + split
let d = arr2.join().split(",")

</script>